package com.eastfair.home.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.request.PageParams;
import com.eastfair.core.base.R;
import com.eastfair.home.dto.ReportDrawingCategoryAuditHistoryDTO;
import com.eastfair.home.vo.ReportDrawingCategoryAuditHistoryVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 报馆图纸分类审核历史 feign.
 *
 * @author dqq
 * @date 2022 /8/22
 */
@FeignClient("home/reportDrawingCategoryAuditHistory")
public interface ReportDrawingCategoryAuditHistoryFeign {

    /**
     * 分页查询报馆图纸分类审核历史列表.
     *
     * @param pageParams the page params
     * @return the r
     */
    @PostMapping("/query/reportDrawingCategoryAuditHistory")
    R<Page<ReportDrawingCategoryAuditHistoryVO>> queryReportDrawingCategoryAuditHistory(@RequestBody
                                                                                        PageParams<ReportDrawingCategoryAuditHistoryDTO> pageParams);

    /**
     * 场馆审核更新审核历史.
     *
     * @param historyDTO the history dto
     * @return the r
     */
    @PostMapping("/update/venueAuditStatus")
    R<Boolean> updateVenueAuditStatus(@RequestBody ReportDrawingCategoryAuditHistoryDTO historyDTO);
}